#include <iostream>
#include "Pile.h"
#include "Pile_List.h"
#include "Log.h"
//#include "PS_Log.h"

int main() {
    LOG_SHOW_TIME_STAMP(false);

    LOG_ACTIVATE_DETAIL(MAIN);
    LOG_ACTIVATE_DETAIL(CLUSTER);
    LOG_ACTIVATE_DETAIL(INPUT);
    LOG_ACTIVATE_DETAIL(GRAPH);
    LOG_ACTIVATE_DETAIL(DISTANCE);
    LOG_ACTIVATE_DETAIL(TREE);
    LOG_ACTIVATE_DETAIL(COLOR);
    LOG_ACTIVATE_DETAIL(FIX);
    LOG_ACTIVATE_DETAIL(SKIN);
    LOG_ACTIVATE_DETAIL(ERROR);
    LOG_ACTIVATE_DETAIL(OBJECT);
    LOG_ACTIVATE_DETAIL(PS);

    // std::cout << "gonna set stream file\n";

//    Log::set_stream_file("error.log");
//    std::ofstream out("error.log");
//    Log::set_output_stream(out);
    Log::set_output_stream(std::cout);
//    PS_Log::open("test_objects.ps");

    LOG(MAIN) << "in main prog";
    LOG(MAIN) << "gonna make Pile";

    Pile *col = new Pile_List();

    col->read("data/test5.txt");
    col->write(std::cout);
}
